package com.rew.canteenbox.models;

import com.google.gson.annotations.SerializedName;

/**
 *  展示列表.
 *
 * Created by HuiWen Ren on 2016/10/18.
 */

public class Dishes{

    @SerializedName("dishName")
    private String dishName;

    private String dishesInfo;

    private int picId;

    @SerializedName("dishPrice")
    private int dishPrice;

    @SerializedName("dishNum")
    private int dishNum;

    public Dishes(){}

    public void Dishes(String dishName, int dishNum, int dishPrice, String dishInfo,int picId){
        this.dishName = dishName;
        this.dishNum = dishNum;
        this.dishPrice = dishPrice;
        this.dishesInfo = dishInfo;
        this.picId = picId;
    }

    //TODO：这样会不会重复/嵌套构造

    public Dishes(String dishName, int picId,int dishPrice, String dishesInfo){
        Dishes(dishName,0,dishPrice,dishesInfo,picId);
    }

    public Dishes(String dishName, int dishNum){
        Dishes(dishName,dishNum,0,null,0);
    }

    public Dishes(String dishName, int dishNum, int dishPiece){
        Dishes(dishName,dishNum,dishPiece,null,0);
    }

    public String getDishName() {
        return dishName;
    }

    public void setPicId(int picId){
        this.picId = picId;
    }

    public int getPicId() {
        return picId;
    }

    public String getDishesInfo() {
        return dishesInfo;
    }

    public void setDishesInfo(String dishesInfo) {
        this.dishesInfo = dishesInfo;
    }

    public int getDishPrice() {
        return dishPrice;
    }

    public void setDishPrice(int dishPrice) {
        this.dishPrice = dishPrice;
    }

    public int getDishNum() {
        return dishNum;
    }

    public void setDishNum(int dishNum) {
        this.dishNum = dishNum;
    }
}
